home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / pine3.96.tar.gz / pine3.96.tar / pine3.96 / pine / osdep / chnge_pw < prev    next >
Text File  |  1995-05-05  |  710b  |  27 lines

  1. /*----------------------------------------------------------------------
  2.        Call the system to change the passwd
  3.  
  4. It would be nice to talk to the passwd program via a pipe or ptty so the
  5. user interface could be consistent, but we can't count on the the prompts
  6. and responses from the passwd program to be regular so we just let the user 
  7. type at the passwd program with some screen space, hope he doesn't scroll 
  8. off the top and repaint when he's done.
  9.  ----*/        
  10. change_passwd()
  11. {
  12.     char cmd_buf[100];
  13.  
  14.     ClearLines(1, ps_global->ttyo->screen_rows - 1);
  15.  
  16.     MoveCursor(5, 0);
  17.     fflush(stdout);
  18.  
  19.     Raw(0);
  20.     strcpy(cmd_buf, PASSWD_PROG);
  21.     system(cmd_buf);
  22.     sleep(3);
  23.     Raw(1);
  24. }
  25.  
  26.  
  27.